package com.example.text2.http;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by 段傅华 on 2018/12/13.
 */

public interface MyServer {
    //https://gank.io/api/search/query/listview/category/%E4%BC%91%E6%81%AF%E8%A7%86%E9%A2%91/count/40/page/1
    //https://gank.io/api/data/%E7%A6%8F%E5%88%A9/10/1
    //http://c.m.163.com/nc/video/list/V9LG4B3A0/n/0-10.html
    String mUrl="http://c.m.163.com/nc/video/list/V9LG4B3A0/n/";
    @POST("{page}-10.html")
    Observable<String>getcount(@Path("page") int page,@Header("User-Agent:") String s);

    String mUrl2="https://gank.io/api/data/%E7%A6%8F%E5%88%A9/";
    @GET("{count}/1")
    Observable<String>getcount2(@Path("count") int count);
}
